/**
 * Created by wubin on 2016-04-17.
 * when validate some input box's value, can use this class to
 * generate message to return back invoker.
 */
export class UserRegisterMessage{
    //validated result, true if validate success or false if validate defeat.
    private _flag:boolean;
    //validated result message, typical return error message if validated result is false.
    private _message:string;

    get flag():boolean {
        return this._flag;
    }

    set flag(value:boolean) {
        this._flag = value;
    }

    get message():string {
        return this._message;
    }

    set message(value:string) {
        this._message = value;
    }
}